package com.bajiao.entity.system;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @Description: 系统通告表
 * @Author: FanJq
 * @Date:   2024-07-28
 * @Version: V1.0
 */
@Data
@TableName("sys_announcement")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="sys_announcement对象", description="系统通告表")
public class Announcement {

	/**id*/
	@TableId(type = IdType.ID_WORKER_STR)
    @ApiModelProperty(value = "id")
	private java.lang.String id;
	/**标题*/
	@Excel(name = "标题", width = 15)
    @ApiModelProperty(value = "标题")
	private java.lang.String titile;
	/**内容*/
	@Excel(name = "内容", width = 15)
    @ApiModelProperty(value = "内容")
	private java.lang.Object msgContent;
	/**开始时间*/
	@Excel(name = "开始时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "开始时间")
	private java.util.Date startTime;
	/**结束时间*/
	@Excel(name = "结束时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "结束时间")
	private java.util.Date endTime;
	/**发布人*/
	@Excel(name = "发布人", width = 15)
    @ApiModelProperty(value = "发布人")
	private java.lang.String sender;
	/**优先级（L低，M中，H高）*/
	@Excel(name = "优先级（L低，M中，H高）", width = 15)
    @ApiModelProperty(value = "优先级（L低，M中，H高）")
	private java.lang.String priority;
	/**消息类型1:通知公告2:系统消息*/
	@Excel(name = "消息类型1:通知公告2:系统消息", width = 15)
    @ApiModelProperty(value = "消息类型1:通知公告2:系统消息")
	private java.lang.String msgCategory;
	/**通告对象类型（USER:指定用户，ALL:全体用户）*/
	@Excel(name = "通告对象类型（USER:指定用户，ALL:全体用户）", width = 15)
    @ApiModelProperty(value = "通告对象类型（USER:指定用户，ALL:全体用户）")
	private java.lang.String msgType;
	/**发布状态（0未发布，1已发布，2已撤销）*/
	@Excel(name = "发布状态（0未发布，1已发布，2已撤销）", width = 15)
    @ApiModelProperty(value = "发布状态（0未发布，1已发布，2已撤销）")
	private java.lang.String sendStatus;
	/**发布时间*/
	@Excel(name = "发布时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "发布时间")
	private java.util.Date sendTime;
	/**撤销时间*/
	@Excel(name = "撤销时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "撤销时间")
	private java.util.Date cancelTime;
	/**删除状态（0，正常，1已删除）*/
	@Excel(name = "删除状态（0，正常，1已删除）", width = 15)
    @ApiModelProperty(value = "删除状态（0，正常，1已删除）")
	private java.lang.String delFlag;
	/**业务类型(email:邮件 bpm:流程)*/
	@Excel(name = "业务类型(email:邮件 bpm:流程)", width = 15)
    @ApiModelProperty(value = "业务类型(email:邮件 bpm:流程)")
	private java.lang.String busType;
	/**业务id*/
	@Excel(name = "业务id", width = 15)
    @ApiModelProperty(value = "业务id")
	private java.lang.String busId;
	/**打开方式(组件：component 路由：url)*/
	@Excel(name = "打开方式(组件：component 路由：url)", width = 15)
    @ApiModelProperty(value = "打开方式(组件：component 路由：url)")
	private java.lang.String openType;
	/**组件/路由 地址*/
	@Excel(name = "组件/路由 地址", width = 15)
    @ApiModelProperty(value = "组件/路由 地址")
	private java.lang.String openPage;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
	private java.lang.String createBy;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private java.util.Date createTime;
	/**更新人*/
	@Excel(name = "更新人", width = 15)
    @ApiModelProperty(value = "更新人")
	private java.lang.String updateBy;
	/**更新时间*/
	@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
	private java.util.Date updateTime;
	/**指定用户*/
	@Excel(name = "指定用户", width = 15)
    @ApiModelProperty(value = "指定用户")
	private java.lang.Object userIds;
}
